import { createPinia } from 'pinia'
//1.引入piniaPersist持久化插件
import { createPersistedState } from 'pinia-plugin-persistedstate'
const store = createPinia()
store.use(
  createPersistedState({
    key: id => `_hd_comapny__persisted__${id}`,
    storage: sessionStorage,
  }),
)
export default store
